<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"  %>
<%@include file="/survey/include/head.jsp"%>
<script language="javascript" type="text/javascript" 
src="<%=request.getContextPath() %>/symanage/js/datepicker/WdatePicker.js"></script>
<body>
<div id="demo">
    <div id="mainbox">
        <div id="box">
<%@include file="/survey/include/top.jsp"%>

           <div class="right">
                <div class="banner"><img src="<%=request.getContextPath() %>/survey/images/about_banner.jpg" width="703" height="183" /></div>
             <div class="tj_news" style="float:left; width:97%;">
               <h1>后台编辑问卷</h1>
               <div class="dd">
               <form action="<%=request.getContextPath() %>/symanage/baseinfo/updatebase.htm" method="post" name="form1"> 
                 <table width="85%" border="0">
                   <tr>
                     <td width="30%" align="right">问卷名称:</td>
       				 <td width="70%"><label><input type="hidden" name="id" value="${tbase.id}"/>
                       <input type="text" name="sy_name" value="${tbase.sy_name }" id="textfield" />
                     </label></td>
                   </tr>
                   <tr>
                     <td align="right">开始时间:</td>
                     <td><label>
                     <input type="text" id="d233" name="sy_startime" value="${tbase.sy_startime }"
                       onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                     </label></td>
                   </tr>
                   <tr>
                     <td align="right">结束时间:</td>
                     <td><label>
                     <input type="text" id="d233" name="sy_endtime" value="${tbase.sy_endtime }"
                       onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                     </label></td>
                   </tr>
                    <tr>
                     <td align="right">是否发布:</td>
                     <td><label>
                       <input type="text" name="sy_ispub" size="3" maxlength="1" value="${tbase.sy_ispub}" />
                       <c:if test="${tbase.sy_ispub=='0'}">未发布</c:if><c:if test="${tbase.sy_ispub=='1'}">已发布</c:if>
                     </label></td>
                   </tr>
                     <tr>
                     <td align="right">问卷状态:</td>
                     <td><label>
                       <input type="text" name="sy_status" size="3" maxlength="1" value="${tbase.sy_status}" />
                       <c:if test="${tbase.sy_status=='0'}">默认(0)</c:if><c:if test="${tbase.sy_status=='3'}">已暂停(3)</c:if><c:if test="${tbase.sy_status=='4'}">已关闭(4)</c:if>
                     </label></td>
                   </tr>
                    <tr>
                     <td align="right">模板路径:</td>
                     <td><label>
                       <select type="text" name="sy_template" />
                     <c:if test="${!empty template}">
	                     <c:forEach items="${template}" var="item">
	                     <option value="${item.value }" title="模板${item.key }" <c:if test="${item.value==tbase.sy_template}">selected</c:if>>模板${item.key }</option> 
	                     </c:forEach>
                     </c:if>
                     </select>
                     </label></td>
                   </tr>
                     <tr>
                     <td align="right">创建时间:</td>
                     <td><label>
                     ${tbase.createtime}
                     </label></td>
                   </tr>
                    <tr>
                     <td align="right">创建人:</td>
                     <td><label> ${tbase.person}
                     </label></td>
                   </tr>
 		<script charset="utf-8" src="<%=request.getContextPath() %>/symanage/js/kindeditor/kindeditor.js"></script>
		<script>
			KE.show({
				id : 'sy_preface',
				resizeMode : 1,
				allowPreviewEmoticons : false,
				allowUpload : false,
				items : [
				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'image', 'link']
			});
		</script>                  
                    <tr>
                     <td width="30%" align="right">问卷序言:</td>
       				 <td width="70%"><label>
                       <textarea name="sy_preface" style="width:500px;height:200px;visibility:hidden;" id="sy_preface">${tbase.sy_preface}</textarea>
                     </label></td>
                   </tr>
                    <tr>
                     <td width="30%" align="right">意见提取:</td>
       				 <td width="70%"><label>
                       <textarea name="sy_opinion" id="sy_opinion">${tbase.sy_opinion}</textarea>
                     </label></td>
                   </tr>
                   <tr>
                     <td align="right">
                     <input type="submit" value="确认">
                     </td>
                     <td> <input type="button" name="backup" value="返回" onclick="location.href='<%=request.getContextPath() %>/symanage/baseinfo/list.htm'"></td>
                   </tr>
                 </table>
               </form>
               </div>
                </div>
                <div class="clear"></div>
		</div>
            <div class="clear"></div>
<%@include file="/survey/include/bottom.jsp"%>
        </div>
    </div>
</div>
</body>
</html>

